package com.yserp.project.erp.bill.payment.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yserp.framework.aspectj.lang.annotation.Excel;
import com.yserp.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商品入库单子对象 erp_payment_item
 * 
 * @author yserp
 * @date 2022-08-08
 */
@TableName("erp_payment_item")
@Data
public class PaymentItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 主表ID */
    @Excel(name = "主表ID")
    private Long mainId;

    /** 采购单主键ID */
    @Excel(name = "采购单主键ID")
    private Long purchId;

    /** 采购单号 */
    @Excel(name = "采购单号")
    private String purchCode;

    /** 应付款金额 */
    @Excel(name = "应付款金额")
    private BigDecimal noPayAmount;

    /** 付款金额 */
    @Excel(name = "付款金额")
    private BigDecimal payAmount;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMainId(Long mainId)
    {
        this.mainId = mainId;
    }

    public Long getMainId()
    {
        return mainId;
    }
    public void setPurchId(Long purchId)
    {
        this.purchId = purchId;
    }

    public Long getPurchId()
    {
        return purchId;
    }
    public void setPurchCode(String purchCode)
    {
        this.purchCode = purchCode;
    }

    public String getPurchCode()
    {
        return purchCode;
    }
    public void setNoPayAmount(BigDecimal noPayAmount)
    {
        this.noPayAmount = noPayAmount;
    }

    public BigDecimal getNoPayAmount()
    {
        return noPayAmount;
    }
    public void setPayAmount(BigDecimal payAmount)
    {
        this.payAmount = payAmount;
    }

    public BigDecimal getPayAmount()
    {
        return payAmount;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mainId", getMainId())
            .append("purchId", getPurchId())
            .append("purchCode", getPurchCode())
            .append("noPayAmount", getNoPayAmount())
            .append("payAmount", getPayAmount())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
